<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Qwt User&#39;s Guide: QwtPointMapper Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Qwt User&#39;s Guide
   &#160;<span id="projectnumber">6.2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('class_qwt_point_mapper.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_qwt_point_mapper-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">QwtPointMapper Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A helper class for translating a series of points.  
 <a href="class_qwt_point_mapper.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="qwt__point__mapper_8h_source.html">qwt_point_mapper.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:aafc07ceadb3f311057037ca8680e1c23"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23">TransformationFlag</a> { <a class="el" href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23a0e367a1519b0005cad8bb324854cc8e3">RoundPoints</a> = 0x01
, <a class="el" href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23a288f41a8e4d53c895f7bffaaa9b5d9e4">WeedOutPoints</a> = 0x02
, <a class="el" href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23a7708d7fa581149d1a443f0eaf7066b06">WeedOutIntermediatePoints</a> = 0x04
 }</td></tr>
<tr class="memdesc:aafc07ceadb3f311057037ca8680e1c23"><td class="mdescLeft">&#160;</td><td class="mdescRight">Flags affecting the transformation process.  <a href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23">More...</a><br /></td></tr>
<tr class="separator:aafc07ceadb3f311057037ca8680e1c23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba6206c8750314c543f0e3b771ae1641"><td class="memItemLeft" align="right" valign="top">typedef QFlags&lt; <a class="el" href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23">TransformationFlag</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#aba6206c8750314c543f0e3b771ae1641">TransformationFlags</a></td></tr>
<tr class="separator:aba6206c8750314c543f0e3b771ae1641"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a6e5eabb9c1af9b035023376fa2e1c472"><td class="memItemLeft" align="right" valign="top"><a id="a6e5eabb9c1af9b035023376fa2e1c472"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#a6e5eabb9c1af9b035023376fa2e1c472">QwtPointMapper</a> ()</td></tr>
<tr class="memdesc:a6e5eabb9c1af9b035023376fa2e1c472"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
<tr class="separator:a6e5eabb9c1af9b035023376fa2e1c472"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aabe6a70dae5784e8b67f4527c51e0c09"><td class="memItemLeft" align="right" valign="top"><a id="aabe6a70dae5784e8b67f4527c51e0c09"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#aabe6a70dae5784e8b67f4527c51e0c09">~QwtPointMapper</a> ()</td></tr>
<tr class="memdesc:aabe6a70dae5784e8b67f4527c51e0c09"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:aabe6a70dae5784e8b67f4527c51e0c09"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab556bd339cca487f25e2d894c51abe85"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#ab556bd339cca487f25e2d894c51abe85">setFlags</a> (<a class="el" href="class_qwt_point_mapper.html#aba6206c8750314c543f0e3b771ae1641">TransformationFlags</a>)</td></tr>
<tr class="separator:ab556bd339cca487f25e2d894c51abe85"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3bed903e8aeaebd8153c6c75121bfb01"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_qwt_point_mapper.html#aba6206c8750314c543f0e3b771ae1641">TransformationFlags</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#a3bed903e8aeaebd8153c6c75121bfb01">flags</a> () const</td></tr>
<tr class="separator:a3bed903e8aeaebd8153c6c75121bfb01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e03e14718d3d66a0f6a02fec7fcaeed"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#a6e03e14718d3d66a0f6a02fec7fcaeed">setFlag</a> (<a class="el" href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23">TransformationFlag</a>, bool on=true)</td></tr>
<tr class="separator:a6e03e14718d3d66a0f6a02fec7fcaeed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5083f71473fd88e23363a587d84779f3"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#a5083f71473fd88e23363a587d84779f3">testFlag</a> (<a class="el" href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23">TransformationFlag</a>) const</td></tr>
<tr class="separator:a5083f71473fd88e23363a587d84779f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a03910571df91575456e98134f6543650"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#a03910571df91575456e98134f6543650">setBoundingRect</a> (const QRectF &amp;)</td></tr>
<tr class="separator:a03910571df91575456e98134f6543650"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a22846085780856a6ca36776d387d5b21"><td class="memItemLeft" align="right" valign="top">QRectF&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#a22846085780856a6ca36776d387d5b21">boundingRect</a> () const</td></tr>
<tr class="separator:a22846085780856a6ca36776d387d5b21"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a394341ccba09dd293dddc7bb4f599891"><td class="memItemLeft" align="right" valign="top">QPolygonF&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#a394341ccba09dd293dddc7bb4f599891">toPolygonF</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;xMap, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;yMap, const <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>&lt; QPointF &gt; *series, int from, int to) const</td></tr>
<tr class="memdesc:a394341ccba09dd293dddc7bb4f599891"><td class="mdescLeft">&#160;</td><td class="mdescRight">Translate a series of points into a QPolygonF.  <a href="class_qwt_point_mapper.html#a394341ccba09dd293dddc7bb4f599891">More...</a><br /></td></tr>
<tr class="separator:a394341ccba09dd293dddc7bb4f599891"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab1dde54ddb1c522e17e28ff47fbaa82a"><td class="memItemLeft" align="right" valign="top">QPolygon&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#ab1dde54ddb1c522e17e28ff47fbaa82a">toPolygon</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;xMap, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;yMap, const <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>&lt; QPointF &gt; *series, int from, int to) const</td></tr>
<tr class="memdesc:ab1dde54ddb1c522e17e28ff47fbaa82a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Translate a series of points into a QPolygon.  <a href="class_qwt_point_mapper.html#ab1dde54ddb1c522e17e28ff47fbaa82a">More...</a><br /></td></tr>
<tr class="separator:ab1dde54ddb1c522e17e28ff47fbaa82a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad580fc22b1bfcc353e711712cad15ae0"><td class="memItemLeft" align="right" valign="top">QPolygon&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#ad580fc22b1bfcc353e711712cad15ae0">toPoints</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;xMap, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;yMap, const <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>&lt; QPointF &gt; *series, int from, int to) const</td></tr>
<tr class="memdesc:ad580fc22b1bfcc353e711712cad15ae0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Translate a series of points into a QPolygon.  <a href="class_qwt_point_mapper.html#ad580fc22b1bfcc353e711712cad15ae0">More...</a><br /></td></tr>
<tr class="separator:ad580fc22b1bfcc353e711712cad15ae0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69d9ab6398de007d851e7d386ec5dfb7"><td class="memItemLeft" align="right" valign="top">QPolygonF&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#a69d9ab6398de007d851e7d386ec5dfb7">toPointsF</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;xMap, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;yMap, const <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>&lt; QPointF &gt; *series, int from, int to) const</td></tr>
<tr class="memdesc:a69d9ab6398de007d851e7d386ec5dfb7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Translate a series into a QPolygonF.  <a href="class_qwt_point_mapper.html#a69d9ab6398de007d851e7d386ec5dfb7">More...</a><br /></td></tr>
<tr class="separator:a69d9ab6398de007d851e7d386ec5dfb7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48feb94a44632dafc78405e7a42ee65e"><td class="memItemLeft" align="right" valign="top">QImage&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#a48feb94a44632dafc78405e7a42ee65e">toImage</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;xMap, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;yMap, const <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>&lt; QPointF &gt; *series, int from, int to, const QPen &amp;, bool antialiased, uint numThreads) const</td></tr>
<tr class="memdesc:a48feb94a44632dafc78405e7a42ee65e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Translate a series into a QImage.  <a href="class_qwt_point_mapper.html#a48feb94a44632dafc78405e7a42ee65e">More...</a><br /></td></tr>
<tr class="separator:a48feb94a44632dafc78405e7a42ee65e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A helper class for translating a series of points. </p>
<p><a class="el" href="class_qwt_point_mapper.html" title="A helper class for translating a series of points.">QwtPointMapper</a> is a collection of methods and optimizations for translating a series of points into paint device coordinates. It is used by <a class="el" href="class_qwt_plot_curve.html" title="A plot item, that represents a series of points.">QwtPlotCurve</a> but might also be useful for similar plot items displaying a <a class="el" href="class_qwt_series_data.html">QwtSeriesData&lt;QPointF&gt;</a>. </p>

<p class="definition">Definition at line <a class="el" href="qwt__point__mapper_8h_source.html#l00032">32</a> of file <a class="el" href="qwt__point__mapper_8h_source.html">qwt_point_mapper.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="aba6206c8750314c543f0e3b771ae1641"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aba6206c8750314c543f0e3b771ae1641">&#9670;&nbsp;</a></span>TransformationFlags</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef QFlags&lt;<a class="el" href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23">TransformationFlag</a> &gt; <a class="el" href="class_qwt_point_mapper.html#aba6206c8750314c543f0e3b771ae1641">QwtPointMapper::TransformationFlags</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>An ORed combination of <a class="el" href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23">TransformationFlag</a> values. </p>

<p class="definition">Definition at line <a class="el" href="qwt__point__mapper_8h_source.html#l00071">71</a> of file <a class="el" href="qwt__point__mapper_8h_source.html">qwt_point_mapper.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="aafc07ceadb3f311057037ca8680e1c23"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aafc07ceadb3f311057037ca8680e1c23">&#9670;&nbsp;</a></span>TransformationFlag</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23">QwtPointMapper::TransformationFlag</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Flags affecting the transformation process. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_point_mapper.html#a6e03e14718d3d66a0f6a02fec7fcaeed">setFlag()</a>, <a class="el" href="class_qwt_point_mapper.html#ab556bd339cca487f25e2d894c51abe85">setFlags()</a> </dd></dl>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="aafc07ceadb3f311057037ca8680e1c23a0e367a1519b0005cad8bb324854cc8e3"></a>RoundPoints&#160;</td><td class="fielddoc"><p>Round points to integer values. </p>
</td></tr>
<tr><td class="fieldname"><a id="aafc07ceadb3f311057037ca8680e1c23a288f41a8e4d53c895f7bffaaa9b5d9e4"></a>WeedOutPoints&#160;</td><td class="fielddoc"><p>Try to remove points, that are translated to the same position. </p>
</td></tr>
<tr><td class="fieldname"><a id="aafc07ceadb3f311057037ca8680e1c23a7708d7fa581149d1a443f0eaf7066b06"></a>WeedOutIntermediatePoints&#160;</td><td class="fielddoc"><p>An even more aggressive weeding algorithm, that can be used in <a class="el" href="class_qwt_point_mapper.html#ab1dde54ddb1c522e17e28ff47fbaa82a" title="Translate a series of points into a QPolygon.">toPolygon()</a>.</p>
<p>A consecutive chunk of points being mapped to the same x coordinate is reduced to 4 points:</p>
<ul>
<li>first point</li>
<li>point with the minimum y coordinate</li>
<li>point with the maximum y coordinate</li>
<li>last point</li>
</ul>
<p>In the worst case ( first and last points are never one of the extremes ) the number of points will be 4 times the width.</p>
<p>As the algorithm is fast it can be used inside of a polyline render cycle. </p>
</td></tr>
</table>

<p class="definition">Definition at line <a class="el" href="qwt__point__mapper_8h_source.html#l00039">39</a> of file <a class="el" href="qwt__point__mapper_8h_source.html">qwt_point_mapper.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a22846085780856a6ca36776d387d5b21"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a22846085780856a6ca36776d387d5b21">&#9670;&nbsp;</a></span>boundingRect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QRectF QwtPointMapper::boundingRect </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>Bounding rectangle </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_point_mapper.html#a03910571df91575456e98134f6543650">setBoundingRect()</a> </dd></dl>

<p class="definition">Definition at line <a class="el" href="qwt__point__mapper_8cpp_source.html#l00621">621</a> of file <a class="el" href="qwt__point__mapper_8cpp_source.html">qwt_point_mapper.cpp</a>.</p>

</div>
</div>
<a id="a3bed903e8aeaebd8153c6c75121bfb01"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3bed903e8aeaebd8153c6c75121bfb01">&#9670;&nbsp;</a></span>flags()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_qwt_point_mapper.html#aba6206c8750314c543f0e3b771ae1641">QwtPointMapper::TransformationFlags</a> QwtPointMapper::flags </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>Flags affecting the transformation process </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_point_mapper.html#ab556bd339cca487f25e2d894c51abe85">setFlags()</a>, <a class="el" href="class_qwt_point_mapper.html#a6e03e14718d3d66a0f6a02fec7fcaeed">setFlag()</a> </dd></dl>

<p class="definition">Definition at line <a class="el" href="qwt__point__mapper_8cpp_source.html#l00573">573</a> of file <a class="el" href="qwt__point__mapper_8cpp_source.html">qwt_point_mapper.cpp</a>.</p>

</div>
</div>
<a id="a03910571df91575456e98134f6543650"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a03910571df91575456e98134f6543650">&#9670;&nbsp;</a></span>setBoundingRect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtPointMapper::setBoundingRect </td>
          <td>(</td>
          <td class="paramtype">const QRectF &amp;&#160;</td>
          <td class="paramname"><em>rect</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set a bounding rectangle for the point mapping algorithm</p>
<p>A valid bounding rectangle can be used for optimizations</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rect</td><td>Bounding rectangle </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_point_mapper.html#a22846085780856a6ca36776d387d5b21">boundingRect()</a> </dd></dl>

<p class="definition">Definition at line <a class="el" href="qwt__point__mapper_8cpp_source.html#l00612">612</a> of file <a class="el" href="qwt__point__mapper_8cpp_source.html">qwt_point_mapper.cpp</a>.</p>

</div>
</div>
<a id="a6e03e14718d3d66a0f6a02fec7fcaeed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6e03e14718d3d66a0f6a02fec7fcaeed">&#9670;&nbsp;</a></span>setFlag()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtPointMapper::setFlag </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23">TransformationFlag</a>&#160;</td>
          <td class="paramname"><em>flag</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>on</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Modify a flag affecting the transformation process</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">flag</td><td>Flag type </td></tr>
    <tr><td class="paramname">on</td><td>Value</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>flag(), <a class="el" href="class_qwt_point_mapper.html#ab556bd339cca487f25e2d894c51abe85">setFlags()</a> </dd></dl>

<p class="definition">Definition at line <a class="el" href="qwt__point__mapper_8cpp_source.html#l00586">586</a> of file <a class="el" href="qwt__point__mapper_8cpp_source.html">qwt_point_mapper.cpp</a>.</p>

</div>
</div>
<a id="ab556bd339cca487f25e2d894c51abe85"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab556bd339cca487f25e2d894c51abe85">&#9670;&nbsp;</a></span>setFlags()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtPointMapper::setFlags </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_qwt_point_mapper.html#aba6206c8750314c543f0e3b771ae1641">TransformationFlags</a>&#160;</td>
          <td class="paramname"><em>flags</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set the flags affecting the transformation process</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">flags</td><td>Flags </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_point_mapper.html#a3bed903e8aeaebd8153c6c75121bfb01">flags()</a>, <a class="el" href="class_qwt_point_mapper.html#a6e03e14718d3d66a0f6a02fec7fcaeed">setFlag()</a> </dd></dl>

<p class="definition">Definition at line <a class="el" href="qwt__point__mapper_8cpp_source.html#l00564">564</a> of file <a class="el" href="qwt__point__mapper_8cpp_source.html">qwt_point_mapper.cpp</a>.</p>

</div>
</div>
<a id="a5083f71473fd88e23363a587d84779f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5083f71473fd88e23363a587d84779f3">&#9670;&nbsp;</a></span>testFlag()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool QwtPointMapper::testFlag </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23">TransformationFlag</a>&#160;</td>
          <td class="paramname"><em>flag</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>True, when the flag is set </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">flag</td><td>Flag type </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_point_mapper.html#a6e03e14718d3d66a0f6a02fec7fcaeed">setFlag()</a>, <a class="el" href="class_qwt_point_mapper.html#ab556bd339cca487f25e2d894c51abe85">setFlags()</a> </dd></dl>

<p class="definition">Definition at line <a class="el" href="qwt__point__mapper_8cpp_source.html#l00599">599</a> of file <a class="el" href="qwt__point__mapper_8cpp_source.html">qwt_point_mapper.cpp</a>.</p>

</div>
</div>
<a id="a48feb94a44632dafc78405e7a42ee65e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a48feb94a44632dafc78405e7a42ee65e">&#9670;&nbsp;</a></span>toImage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QImage QwtPointMapper::toImage </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
          <td class="paramname"><em>xMap</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
          <td class="paramname"><em>yMap</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>&lt; QPointF &gt; *&#160;</td>
          <td class="paramname"><em>series</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>from</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>to</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QPen &amp;&#160;</td>
          <td class="paramname"><em>pen</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>antialiased</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint&#160;</td>
          <td class="paramname"><em>numThreads</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Translate a series into a QImage. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">xMap</td><td>x map </td></tr>
    <tr><td class="paramname">yMap</td><td>y map </td></tr>
    <tr><td class="paramname">series</td><td>Series of points to be mapped </td></tr>
    <tr><td class="paramname">from</td><td>Index of the first point to be painted </td></tr>
    <tr><td class="paramname">to</td><td>Index of the last point to be painted </td></tr>
    <tr><td class="paramname">pen</td><td>Pen used for drawing a point of the image, where a point is mapped to </td></tr>
    <tr><td class="paramname">antialiased</td><td>True, when the dots should be displayed antialiased </td></tr>
    <tr><td class="paramname">numThreads</td><td>Number of threads to be used for rendering. If numThreads is set to 0, the system specific ideal thread count is used.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Image displaying the series </dd></dl>

<p class="definition">Definition at line <a class="el" href="qwt__point__mapper_8cpp_source.html#l00883">883</a> of file <a class="el" href="qwt__point__mapper_8cpp_source.html">qwt_point_mapper.cpp</a>.</p>

</div>
</div>
<a id="ad580fc22b1bfcc353e711712cad15ae0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad580fc22b1bfcc353e711712cad15ae0">&#9670;&nbsp;</a></span>toPoints()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QPolygon QwtPointMapper::toPoints </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
          <td class="paramname"><em>xMap</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
          <td class="paramname"><em>yMap</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>&lt; QPointF &gt; *&#160;</td>
          <td class="paramname"><em>series</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>from</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>to</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Translate a series of points into a QPolygon. </p>
<ul>
<li>WeedOutPoints &amp; <a class="el" href="class_qwt_point_mapper.html#a22846085780856a6ca36776d387d5b21">boundingRect()</a>.isValid() All points that are mapped to the same position will be one point. Points outside of the bounding rectangle are ignored.</li>
<li>WeedOutPoints &amp; !boundingRect().isValid() All consecutive points that are mapped to the same position will one point</li>
<li>!WeedOutPoints &amp; <a class="el" href="class_qwt_point_mapper.html#a22846085780856a6ca36776d387d5b21">boundingRect()</a>.isValid() Points outside of the bounding rectangle are ignored.</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">xMap</td><td>x map </td></tr>
    <tr><td class="paramname">yMap</td><td>y map </td></tr>
    <tr><td class="paramname">series</td><td>Series of points to be mapped </td></tr>
    <tr><td class="paramname">from</td><td>Index of the first point to be painted </td></tr>
    <tr><td class="paramname">to</td><td>Index of the last point to be painted</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Translated polygon </dd></dl>

<p class="definition">Definition at line <a class="el" href="qwt__point__mapper_8cpp_source.html#l00833">833</a> of file <a class="el" href="qwt__point__mapper_8cpp_source.html">qwt_point_mapper.cpp</a>.</p>

</div>
</div>
<a id="a69d9ab6398de007d851e7d386ec5dfb7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a69d9ab6398de007d851e7d386ec5dfb7">&#9670;&nbsp;</a></span>toPointsF()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QPolygonF QwtPointMapper::toPointsF </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
          <td class="paramname"><em>xMap</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
          <td class="paramname"><em>yMap</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>&lt; QPointF &gt; *&#160;</td>
          <td class="paramname"><em>series</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>from</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>to</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Translate a series into a QPolygonF. </p>
<ul>
<li>WeedOutPoints &amp; RoundPoints &amp; <a class="el" href="class_qwt_point_mapper.html#a22846085780856a6ca36776d387d5b21">boundingRect()</a>.isValid() All points that are mapped to the same position will be one point. Points outside of the bounding rectangle are ignored.</li>
<li>WeedOutPoints &amp; RoundPoints &amp; !boundingRect().isValid() All consecutive points that are mapped to the same position will one point</li>
<li>WeedOutPoints &amp; !RoundPoints All consecutive points that are mapped to the same position will one point</li>
<li>!WeedOutPoints &amp; <a class="el" href="class_qwt_point_mapper.html#a22846085780856a6ca36776d387d5b21">boundingRect()</a>.isValid() Points outside of the bounding rectangle are ignored.</li>
</ul>
<p>When RoundPoints is set all points are rounded to integers but returned as PolygonF - what only makes sense when the further processing of the values need a QPolygonF.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">xMap</td><td>x map </td></tr>
    <tr><td class="paramname">yMap</td><td>y map </td></tr>
    <tr><td class="paramname">series</td><td>Series of points to be mapped </td></tr>
    <tr><td class="paramname">from</td><td>Index of the first point to be painted </td></tr>
    <tr><td class="paramname">to</td><td>Index of the last point to be painted</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Translated polygon </dd></dl>

<p class="definition">Definition at line <a class="el" href="qwt__point__mapper_8cpp_source.html#l00759">759</a> of file <a class="el" href="qwt__point__mapper_8cpp_source.html">qwt_point_mapper.cpp</a>.</p>

</div>
</div>
<a id="ab1dde54ddb1c522e17e28ff47fbaa82a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab1dde54ddb1c522e17e28ff47fbaa82a">&#9670;&nbsp;</a></span>toPolygon()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QPolygon QwtPointMapper::toPolygon </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
          <td class="paramname"><em>xMap</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
          <td class="paramname"><em>yMap</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>&lt; QPointF &gt; *&#160;</td>
          <td class="paramname"><em>series</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>from</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>to</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Translate a series of points into a QPolygon. </p>
<p>When the WeedOutPoints flag is enabled consecutive points, that are mapped to the same position will be one point.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">xMap</td><td>x map </td></tr>
    <tr><td class="paramname">yMap</td><td>y map </td></tr>
    <tr><td class="paramname">series</td><td>Series of points to be mapped </td></tr>
    <tr><td class="paramname">from</td><td>Index of the first point to be painted </td></tr>
    <tr><td class="paramname">to</td><td>Index of the last point to be painted</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Translated polygon </dd></dl>

<p class="definition">Definition at line <a class="el" href="qwt__point__mapper_8cpp_source.html#l00702">702</a> of file <a class="el" href="qwt__point__mapper_8cpp_source.html">qwt_point_mapper.cpp</a>.</p>

</div>
</div>
<a id="a394341ccba09dd293dddc7bb4f599891"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a394341ccba09dd293dddc7bb4f599891">&#9670;&nbsp;</a></span>toPolygonF()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QPolygonF QwtPointMapper::toPolygonF </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
          <td class="paramname"><em>xMap</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
          <td class="paramname"><em>yMap</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>&lt; QPointF &gt; *&#160;</td>
          <td class="paramname"><em>series</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>from</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>to</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Translate a series of points into a QPolygonF. </p>
<p>When the WeedOutPoints flag is enabled consecutive points, that are mapped to the same position will be one point.</p>
<p>When RoundPoints is set all points are rounded to integers but returned as PolygonF - what only makes sense when the further processing of the values need a QPolygonF.</p>
<p>When RoundPoints &amp; WeedOutIntermediatePoints is enabled an even more aggressive weeding algorithm is enabled.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">xMap</td><td>x map </td></tr>
    <tr><td class="paramname">yMap</td><td>y map </td></tr>
    <tr><td class="paramname">series</td><td>Series of points to be mapped </td></tr>
    <tr><td class="paramname">from</td><td>Index of the first point to be painted </td></tr>
    <tr><td class="paramname">to</td><td>Index of the last point to be painted</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Translated polygon </dd></dl>

<p class="definition">Definition at line <a class="el" href="qwt__point__mapper_8cpp_source.html#l00647">647</a> of file <a class="el" href="qwt__point__mapper_8cpp_source.html">qwt_point_mapper.cpp</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_qwt_point_mapper.html">QwtPointMapper</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
